<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div class="box">哈哈哈</div>
    <p>打卡环境开会</p>
    <span>哦网球哦我去哦</span>
  </body>
  <script>
    window.onload = function () {
      const p = document.querySelector("p");
      console.log(p.previousElementSibling);
      console.log(p.nextElementSibling);
    };
  </script>
</html>
